package cn.itsource.blog.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class Article {
    public Integer id;
    public String articlePic;
    public String articleName;
    public String articleTag;
    public Integer articleType;
    public Integer articleState;
    public Integer topState;
    public Integer publishId;
    public Date createTime;
    public Date updateTime;
    public Integer articleReadCount;
    public Integer articleStarNum;
    public Integer articleCommentNum;
    public String articleRemark;
    public String articleContent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<Article> children =new ArrayList<>();


}
